<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>投票列表</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
  <link rel="stylesheet" href="vote/css/vote_css.css" type="text/css"></link>
  <script type="text/javascript">
  		function  del(){
  			if(confirm("是否删除此评选？")){
  				return true;
  			}
  			return false;
  		}
  </script>
<link rel="stylesheet" href="css/style.css" type="text/css"></link></head>
  
  <body>
  	<div class="top">
  		<img src="images/main_28.gif"/>&nbsp;投票列表
  	</div>
     	<div id="vote">
		<div id="vote_main">
			<table width="98%" cellpadding="0" cellspacing="0">
				<tr>
					<td class="td_top" width="35%">&nbsp;投票选项</td>
					<td class="td_top" width="25%">&nbsp;状态</td>	
					<td class="td_top" width="10%">&nbsp;详情</td>									
				</tr>
			<s:iterator value="list">
					<tr align="center">
					<td class="td_01">&nbsp;
						<s:property value="voteName"/>
					</td>
					
					<s:if test="voteStatus==0">
						<td class="td_01">&nbsp;正在展开</td>
					</s:if>
					<s:if test="voteStatus==1">
						<td class="td_01">&nbsp;已结束评选</td>
					</s:if>
					<s:if test="voteStatus==1">						
						<td class="td_01">&nbsp;<a href="selvoteResult?id=<s:property value='voteId'/>"">查看结果</a></td>		
					</s:if>	
					<s:if test="voteStatus==0">
						<td class="td_01">&nbsp;<a href="getListByVoteDetail?id=<s:property value='voteId'/>">参与投票</a></td>	
					</s:if>												
				</tr>
			</s:iterator>	
			</table>
		</div>
	</div>
  </body>
</html>
